package com.ky.manage.model.response;

import com.ky.manage.model.DocInfo;

import java.io.Serializable;
import java.util.List;

/**
 * 户内整改/安检详情 resp
 */
public class IndoorMendSecurityDetailResp extends CommonResp implements Serializable {
    public DetailInfo data;

    public static class DetailInfo implements Serializable {
        public String recordId;
        public String indoorId;
        public String clientName;
        public String clientTel;
        //所属区域，分割
        public String addressList;
        public String detailedAddress;
        public String brandName;
        public String checkPersonName;
        public String checkPersonId;
        public String finishTime;
        //驳回内容
        public String rejectContent;
        //身份证
        public String numberId;
        public String email;
        //壁炉型号
        public String furnaceCode;
        //检修结果：0合格，1不合格
        public String checkResult;
        //状态（0正常， 1待整改， 2已整改）
        public String status;
        //初始等级（0正常， 1一级， 2二级）
        public String initLevel;
        //隐患等级（0正常， 1一级， 2二级）
        public String hiddenDangerLevel;
        //附件列表
        public List<DocInfo> docList;
        //签名照url
        public String signPic;

        public String getMendStateTxt() {
            if ("1".equals(status)) {
                return "待整改";
            }
            if ("2".equals(status)) {
                return "已整改";
            }
            return "正常";
        }

        public String getShowInitLevel() {
            if ("1".equals(initLevel)) {
                return "一级";
            }
            if ("2".equals(initLevel)) {
                return "二级";
            }
            return "正常";
        }

        public String getShowHiddenDangerLevel() {
            if ("1".equals(hiddenDangerLevel)) {
                return "一级";
            }
            if ("2".equals(hiddenDangerLevel)) {
                return "二级";
            }
            return "正常";
        }

        @Override
        public String toString() {
            return "DetailInfo{" +
                    "recordId='" + recordId + '\'' +
                    ", indoorId='" + indoorId + '\'' +
                    ", status='" + status + '\'' +
                    ", clientName='" + clientName + '\'' +
                    ", clientTel='" + clientTel + '\'' +
                    ", addressList='" + addressList + '\'' +
                    ", detailedAddress='" + detailedAddress + '\'' +
                    ", brandName='" + brandName + '\'' +
                    ", checkPersonName='" + checkPersonName + '\'' +
                    ", checkPersonId='" + checkPersonId + '\'' +
                    ", finishTime='" + finishTime + '\'' +
                    ", checkResult='" + checkResult + '\'' +
                    ", rejectContent='" + rejectContent + '\'' +
                    ", numberId='" + numberId + '\'' +
                    ", email='" + email + '\'' +
                    ", furnaceCode='" + furnaceCode + '\'' +
                    ", initLevel='" + initLevel + '\'' +
                    ", hiddenDangerLevel='" + hiddenDangerLevel + '\'' +
                    ", docList=" + docList +
                    ", signPic='" + signPic + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "IndoorMendSecurityDetailResp{" +
                "data=" + data +
                '}';
    }
}
